import fs from "fs";
import { getBinary } from "./DES";
import { binaryToHex, to16 } from "./DES/utils";

let right = [
  {
    "number": 418295,
    "result": "znpEN5Ph",
    "hypothesisKey": "0110100101101110011100110111000001101001001100101000011011101110"
  },
  {
    "number": 436212,
    "result": "pDB3W7D,",
    "hypothesisKey": "0110100101101110011100110111000001101001001101001001111011101000"
  },
  {
    "number": 443706,
    "result": "UK:j3rv1",
    "hypothesisKey": "0110100101101110011100110111000001101001001101100001010001110100"
  },
  {
    "number": 445341,
    "result": "lYwG?71w",
    "hypothesisKey": "0110100101101110011100110111000001101001001101100010111000111010"
  },
  {
    "number": 457601,
    "result": "omPX?UHb",
    "hypothesisKey": "0110100101101110011100110111000001101001001101101110111000000010"
  },
  {
    "number": 204914,
    "result": "CzhijGaW",
    "hypothesisKey": "0110100101101110011100110111000001101001000110001000000011100100"
  },
  {
    "number": 1806399,
    "result": "loKU9k:X",
    "hypothesisKey": "0110100101101110011100110111000001101001110111000100000001111110"
  },
  {
    "number": 1826970,
    "result": "crkPq4W1",
    "hypothesisKey": "0110100101101110011100110111000001101001110111101000001000110100"
  },
  {
    "number": 1211620,
    "result": "dKHsJn8p",
    "hypothesisKey": "0110100101101110011100110111000001101001100100101111001011001000"
  },
  {
    "number": 1212171,
    "result": "mHEGZ?7U",
    "hypothesisKey": "0110100101101110011100110111000001101001100100101111110000010110"
  },
  {
    "number": 1236773,
    "result": "QnF2JItc",
    "hypothesisKey": "0110100101101110011100110111000001101001100101100111110001001010"
  },
  {
    "number": 547360,
    "result": "Rn6cnWSa",
    "hypothesisKey": "0110100101101110011100110111000001101001010000100110100001000000"
  },
  {
    "number": 557262,
    "result": "oT;HZ5LB",
    "hypothesisKey": "0110100101101110011100110111000001101001010001000000001010011100"
  },
  {
    "number": 692648,
    "result": "CXgcqiO2",
    "hypothesisKey": "0110100101101110011100110111000001101001010101000100011001010000"
  },
  {
    "number": 699643,
    "result": "!.p5ympL",
    "hypothesisKey": "0110100101101110011100110111000001101001010101001011001011110110"
  },
  {
    "number": 708110,
    "result": "aovndPqe",
    "hypothesisKey": "0110100101101110011100110111000001101001010101100011100000011100"
  },
  {
    "number": 1893907,
    "result": "6icaoi,;",
    "hypothesisKey": "0110100101101110011100110111000001101001111001101001100000100110"
  },
  {
    "number": 605329,
    "result": "FB;MJv9k",
    "hypothesisKey": "0110100101101110011100110111000001101001010010001111001000100010"
  },
  {
    "number": 644099,
    "result": "qlLel:3;",
    "hypothesisKey": "0110100101101110011100110111000001101001010011100101000000000110"
  },
  {
    "number": 1971486,
    "result": "lIPOvHlS",
    "hypothesisKey": "0110100101101110011100110111000001101001111100000101010000111100"
  },
  {
    "number": 2009392,
    "result": "GsDHsY3a",
    "hypothesisKey": "0110100101101110011100110111000001101001111101001010010001100000"
  },
  {
    "number": 2023658,
    "result": "H1FtPj9f",
    "hypothesisKey": "0110100101101110011100110111000001101001111101101000001011010100"
  },
  {
    "number": 1421394,
    "result": "BG8brmHQ",
    "hypothesisKey": "0110100101101110011100110111000001101001101011001100000010100100"
  },
  {
    "number": 1765552,
    "result": "M?po4F!K",
    "hypothesisKey": "0110100101101110011100110111000001101001110101101100001001100000"
  },
  {
    "number": 906967,
    "result": "ucxmI'Hl",
    "hypothesisKey": "0110100101101110011100110111000001101001011011100101101010101110"
  },
  {
    "number": 992311,
    "result": "n,ot;pFx",
    "hypothesisKey": "0110100101101110011100110111000001101001011110001001000001101110"
  },
  {
    "number": 1005097,
    "result": ",4Pfv4n;",
    "hypothesisKey": "0110100101101110011100110111000001101001011110100101100001010010"
  },
  {
    "number": 1109480,
    "result": "coPX,p1e",
    "hypothesisKey": "0110100101101110011100110111000001101001100001101011011011010000"
  },
  {
    "number": 266859,
    "result": "?k4ik4N6",
    "hypothesisKey": "0110100101101110011100110111000001101001001000000100100011010110"
  },
  {
    "number": 1488152,
    "result": "f!wJre6A",
    "hypothesisKey": "0110100101101110011100110111000001101001101101001101010000110000"
  },
  {
    "number": 921547,
    "result": "!MXUwVNJ",
    "hypothesisKey": "0110100101101110011100110111000001101001011100000011111010010110"
  },
  {
    "number": 940338,
    "result": "positive",
    "hypothesisKey": "0110100101101110011100110111000001101001011100100110010001100100"
  },
  {
    "number": 1306873,
    "result": "54C;Vzld",
    "hypothesisKey": "0110100101101110011100110111000001101001100111101100001011110010"
  },
  {
    "number": 100535,
    "result": "i'eO,jU:",
    "hypothesisKey": "0110100101101110011100110111000001101001000011000010001001101110"
  },
  {
    "number": 1938392,
    "result": "KcOcS!TN",
    "hypothesisKey": "0110100101101110011100110111000001101001111011000100111010110000"
  },
  {
    "number": 2051392,
    "result": ",K8TX2tP",
    "hypothesisKey": "0110100101101110011100110111000001101001111110100011010010000000"
  },
  {
    "number": 2081261,
    "result": "NVaVGiTy",
    "hypothesisKey": "0110100101101110011100110111000001101001111111100000011011011010"
  },
  {
    "number": 2087047,
    "result": "E64TbAPL",
    "hypothesisKey": "0110100101101110011100110111000001101001111111100110001000001110"
  },
  {
    "number": 2092159,
    "result": "ElpNsPW3",
    "hypothesisKey": "0110100101101110011100110111000001101001111111101011000011111110"
  },
  {
    "number": 1553134,
    "result": "Nd4GBGIb",
    "hypothesisKey": "0110100101101110011100110111000001101001101111001100101011011100"
  },
  {
    "number": 463159,
    "result": "L;inyE4N",
    "hypothesisKey": "0110100101101110011100110111000001101001001110000100010001101110"
  },
  {
    "number": 472835,
    "result": "5d.xi9o2",
    "hypothesisKey": "0110100101101110011100110111000001101001001110001101110000000110"
  },
  {
    "number": 475262,
    "result": "pYDOT.,d",
    "hypothesisKey": "0110100101101110011100110111000001101001001110100000000011111100"
  },
  {
    "number": 512950,
    "result": "Ql?2zIcw",
    "hypothesisKey": "0110100101101110011100110111000001101001001111100100111001101100"
  },
  {
    "number": 1659386,
    "result": "fRYCw5MK",
    "hypothesisKey": "0110100101101110011100110111000001101001110010100100011011110100"
  },
  {
    "number": 1676748,
    "result": "iaPtp5KL",
    "hypothesisKey": "0110100101101110011100110111000001101001110011000101011010011000"
  },
  {
    "number": 1687563,
    "result": "kW?ri:xN",
    "hypothesisKey": "0110100101101110011100110111000001101001110011100000000000010110"
  },
  {
    "number": 771221,
    "result": "xj46SF..",
    "hypothesisKey": "0110100101101110011100110111000001101001010111100001001000101010"
  },
  {
    "number": 1352077,
    "result": "CP6lQoc2",
    "hypothesisKey": "0110100101101110011100110111000001101001101001001000011000011010"
  }
]

// const right1 = right.map(item => {
//   // @ts-ignore
//   item['hex'] = binaryToHex(item.hypothesisKey)
//   return item
// })

// fs.writeFileSync('.json', JSON.stringify(right1))

// console.log(right1);


